import { createEditorConfig } from '@utils/editor-config'
import base from '@packages/base'
import container from '@/packages/container'
import custom from '@/packages/custom'


export const visualConfig = createEditorConfig()

// 注册基础控件
Object.keys(base).forEach((name) =>
  visualConfig.registry('base', name, base[name])
)
// 注册容器组件
Object.keys(container).forEach((name) =>
  visualConfig.registry('container', name, container[name])
)
// 注册业务组件
Object.keys(custom).forEach((name) =>
  visualConfig.registry('custom', name, custom[name])
)
